package com.flyco.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import com.flyco.modules.system.model.StoreInfoModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import net.sf.saxon.functions.Exists;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 消息通知
 * @Author: flyco
 * @Date: 2024-06-19
 * @Version: V1.0
 */
@Data
@TableName("sys_msg_notice")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "sys_msg_notice对象", description = "消息通知")
public class SysMsgNotice {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 商家id
     */
    @Excel(name = "商家id", width = 15)
    @ApiModelProperty(value = "商家id")
    private Integer partnerId;
    /**
     * 消息标题
     */
    @Excel(name = "消息标题", width = 15)
    @ApiModelProperty(value = "消息标题")
    private String msgTitle;
    /**
     * 消息内容
     */
    @Excel(name = "消息内容", width = 15)
    @ApiModelProperty(value = "消息内容")
    private String msgContent;
    /**
     * 状态：0.新建 1.已审核
     */
    @Excel(name = "状态：0.新建 1.已审核 2.撤回", width = 15)
    @ApiModelProperty(value = "状态：0.新建 1.已审核")
    @Dict(dicCode = "msgStatus")
    private Integer msgStatus;
    /**
     * 附件名称
     */
    @Excel(name = "附件名称", width = 15)
    @ApiModelProperty(value = "附件名称")
    private String attachmentName;
    /**
     * 附件地址
     */
    @Excel(name = "附件地址", width = 15)
    @ApiModelProperty(value = "附件地址")
    private String attachmentUrl;
    /**
     * 审核人
     */
    @Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String auditBy;
    /**
     * 审核时间
     */
    @Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
    /**
     * 状态：0.新建 1.已审核
     */
    @Excel(name = "消息类型：0.经销商通知 1.结案通知", width = 15)
    @ApiModelProperty(value = "消息类型：0.经销商通知 1.结案通知")
    @Dict(dicCode = "msgType")
    private Integer msgType;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**
     * 删除状态：0.未删除 1.已删除
     */
    @Excel(name = "删除状态：0.未删除 1.已删除", width = 15)
    @ApiModelProperty(value = "删除状态：0.未删除 1.已删除")
    private Integer deleteStatus;

    /**
     * 通知经销商列表
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "通知经销商列表")
    private List<SysMsgNoticeRecord> noticeRecordList;
}
